﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestProject
{
    class RandomTest
    {
        Random rand = new Random();
        char[] letters;
        public char[] fillButtons(int c)
        {
            Char[] ar = new Char[]{'A', 'Б', 'В', 'Г', 'Д', 'Е', 'Ё', 'Ж', 'З', 'И', 'Й', 'К', 'Л', 'М', 'Н', 'О', 'П', 'Р', 'С',
        'Т', 'У', 'Ф', 'Х', 'Ц', 'Ч', 'Ш', 'Щ', 'Ъ', 'Ы', 'Ь', 'Э', 'Ю', 'Я'};

            char[] chars = new char[32];

            for (int i = 224, n = 0; i <= 255; i++, n++)
            {
                chars[n] = (char)i; // (char) приводит код к символу
            }
            Game game = new Game("../../Project_Images/1Easy.txt");
            
            for (int i = 0; i < 10 - game.Spisok[c].Name.Length; i++)
            {
                letters = new char[10 - game.Spisok[c].Name.Length];
                letters[i] = chars[rand.Next(0, 32)];
            }
            return letters;
        }

    }
}
